package mapper;

import java.util.List;

import Entity.User;

public interface Usermapper {
		//�����ݿ������User
		public boolean CreatAccount(User user);
		//����ѧ�Ÿ����ǳ�
		public void Change_Name(User user);
		//����ѧ�Ÿ�������
		public void Change_Pwd(User user);
		//��ѯ�û����������Ƿ���ȷ
		public User Validate(User user);
		
		public List<User>  SearchUser(String searh);
		
		public List<User>  SearchUserBypage(String searh,int page);
		
		public User findUser(String uid);
		
		
		//查所有老师
		public List<User>  SearchTeacher();
		//查所有学生
		public List<User>  SearchStudent();
		//分页查老师
		public List<User>  SearchTeacherBypage(int page);
		//分页查学生
		public List<User>  SearchStudentBypage(int page);
}
